package com.fa.mapper;

import com.fa.common.core.domain.AjaxResult;
import com.fa.domain.MdUnitDTO;
import com.fa.domain.MdUnitMeasure;

import java.util.List;

public interface MdUnitMapper {

    List<MdUnitMeasure> selectMdUnitList(MdUnitDTO mdUnitDTO);

    List<MdUnitMeasure> selectMdUnitListPrimary();

    Integer add(MdUnitMeasure mdUnitMeasure);

    int updateMdUnit(MdUnitMeasure mdUnitMeasure);

    int deleteMdUnit(Long vendorId);

    /**
     * 批量删除
     *
     * @param vendorIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteMdUnitByUnitIds(Long[] unitIds);
}
